package com.itlzh.mall.common.utils;

/**
 * 加密工具类，用于对特定字段进行加密
 */
public class EncryptUtils {
    public static String hidePhone(String text){
        StringBuilder sb=new StringBuilder(text.substring(0,3));
        sb.append("*".repeat(text.length()-7));
        sb.append(text.substring(text.length()-4));
        return sb.toString();
    }
}
